package com.taijihuabao.modules.entity;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.taijihuabao.common.commonutils.LongToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

/**
 * 部门用户中间表
 * @author xiaob
 * @ToString 解决继承的字段在对象中消失的情况
 */
@Data
@EqualsAndHashCode(callSuper=false)
@ToString(callSuper = true)
@ApiModel("部门用户中间表")
public class DeptUserEntity extends BaseEntity {

    /**
     * 部门用户编号
     */
    @ApiModelProperty(value = "部门用户编号")
    @JsonSerialize(using = LongToStringSerializer.class)
    private Long id;

    /**
     * 用户编号
     */
    @ApiModelProperty(value = "用户编号")
    @JsonSerialize(using = LongToStringSerializer.class)
    private Long userId;

    /**
     * 部门编码
     */
    @ApiModelProperty(value = "部门编码")
    private String deptCode;

    /**
     * 部门角色编码
     */
    @ApiModelProperty(value = "部门角色编码")
    private String deptRole;

}
